.contact-list {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
  
    
  
    /* 联系人列表容器 */
    .list-container {
      flex: 1;
      overflow-y: auto;
      background-color: white;
    }
  
    /* 联系人项 */
    .contact-item {
      display: flex;
      align-items: center;
      padding: 12px;
      cursor: pointer;
      transition: background-color 0.2s;
  
      &:hover {
        background-color: #f5f5f5;
      }
  
      &.active {
        background-color: #e6e6e6;
      }
  
      /* 头像 */
      .avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
      }
  
      /* 联系人信息 */
      .contact-info {
        flex: 1;
        margin-left: 12px;
        min-width: 0;
  
        .username {
          font-size: 16px;
          color: #333;
          font-weight: 500;
          margin-bottom: 4px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
  
        .last-message {
          font-size: 14px;
          color: #999;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
  
      /* 最后消息时间 */
      .last-time {
        flex-shrink: 0;
        font-size: 12px;
        color: #999;
        margin-left: 12px;
      }
    }
  }